package cn.iocoder.yudao.module.project.controller.admin.weighthistoryorderedit.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 订单编辑-删除相关称重业务新增/修改 Request VO")
@Data
public class WeightHistoryOrderEditSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5258")
    private Long recycleId;

    @Schema(description = "称重业务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14678")
    @NotEmpty(message = "称重业务编号不能为空")
    private String weightId;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "订单编号不能为空")
    private String orderCode;

    @Schema(description = "内码编号")
    private String internalCode;

    @Schema(description = "电子秤id", example = "5178")
    private Long scaleId;

    @Schema(description = "电子秤名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "电子秤名称不能为空")
    private String scaleName;

    @Schema(description = "ip", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "ip不能为空")
    private String ip;

    @Schema(description = "port", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "port不能为空")
    private String port;

    @Schema(description = "重量(g)")
    private Double weight;

    @Schema(description = "重量状态(0:正常:1过轻,2:过重)", example = "1")
    private Integer weightStatus;

    @Schema(description = "操作员")
    private String operator;

    @Schema(description = "导入时间")
    private LocalDateTime operatingTime;

    @Schema(description = "备注", example = "随便")
    private String remark;

}